3.1.48 \(\int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx\) [48]

3.1.48.1 Optimal result
3.1.48.2 Mathematica [A] (verified)
3.1.48.3 Rubi [A] (verified)
3.1.48.4 Maple [C] (warning: unable to verify)
3.1.48.5 Fricas [F(-1)]
3.1.48.6 Sympy [F]
3.1.48.7 Maxima [F]
3.1.48.8 Giac [F]
3.1.48.9 Mupad [F(-1)]

3.1.48.1 Optimal result

Integrand size = 35, antiderivative size = 391 \[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=-\frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {a (c+d)}{(a+b) c},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} f}+\frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} f} \]

output
-2*EllipticPi((a+b)^(1/2)*(c+d*sin(f*x+e))^(1/2)/(c+d)^(1/2)/(a+b*sin(f*x+ 
e))^(1/2),a*(c+d)/(a+b)/c,((a-b)*(c+d)/(a+b)/(c-d))^(1/2))*sec(f*x+e)*(a+b 
*sin(f*x+e))*(c+d)^(1/2)*(-(-a*d+b*c)*(1-sin(f*x+e))/(c+d)/(a+b*sin(f*x+e) 
))^(1/2)*((-a*d+b*c)*(1+sin(f*x+e))/(c-d)/(a+b*sin(f*x+e)))^(1/2)/f/(a+b)^ 
(1/2)+2*EllipticPi((a+b)^(1/2)*(c+d*sin(f*x+e))^(1/2)/(c+d)^(1/2)/(a+b*sin 
(f*x+e))^(1/2),b*(c+d)/(a+b)/d,((a-b)*(c+d)/(a+b)/(c-d))^(1/2))*sec(f*x+e) 
*(a+b*sin(f*x+e))*(c+d)^(1/2)*(-(-a*d+b*c)*(1-sin(f*x+e))/(c+d)/(a+b*sin(f 
*x+e)))^(1/2)*((-a*d+b*c)*(1+sin(f*x+e))/(c-d)/(a+b*sin(f*x+e)))^(1/2)/f/( 
a+b)^(1/2)
 
3.1.48.2 Mathematica [A] (verified)

Time = 0.19 (sec) , antiderivative size = 274, normalized size of antiderivative = 0.70 \[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=-\frac {2 \sqrt {c+d} \left (\operatorname {EllipticPi}\left (\frac {a (c+d)}{(a+b) c},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )-\operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (-1+\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} f} \]

input
Integrate[Csc[e + f*x]*Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]],x 
]
 
output
(-2*Sqrt[c + d]*(EllipticPi[(a*(c + d))/((a + b)*c), ArcSin[(Sqrt[a + b]*S 
qrt[c + d*Sin[e + f*x]])/(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])], ((a - b) 
*(c + d))/((a + b)*(c - d))] - EllipticPi[(b*(c + d))/((a + b)*d), ArcSin[ 
(Sqrt[a + b]*Sqrt[c + d*Sin[e + f*x]])/(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x 
]])], ((a - b)*(c + d))/((a + b)*(c - d))])*Sec[e + f*x]*Sqrt[((b*c - a*d) 
*(-1 + Sin[e + f*x]))/((c + d)*(a + b*Sin[e + f*x]))]*Sqrt[((b*c - a*d)*(1 
 + Sin[e + f*x]))/((c - d)*(a + b*Sin[e + f*x]))]*(a + b*Sin[e + f*x]))/(S 
qrt[a + b]*f)
 
3.1.48.3 Rubi [A] (verified)

Time = 1.11 (sec) , antiderivative size = 391, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3042, 3428, 3042, 3290, 3424}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{\sin (e+f x)}dx\)

\(\Big \downarrow \) 3428

\(\displaystyle d \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}}dx+c \int \frac {\csc (e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}}dx\)

\(\Big \downarrow \) 3042

\(\displaystyle d \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}}dx+c \int \frac {\sqrt {a+b \sin (e+f x)}}{\sin (e+f x) \sqrt {c+d \sin (e+f x)}}dx\)

\(\Big \downarrow \) 3290

\(\displaystyle c \int \frac {\sqrt {a+b \sin (e+f x)}}{\sin (e+f x) \sqrt {c+d \sin (e+f x)}}dx+\frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{f \sqrt {a+b}}\)

\(\Big \downarrow \) 3424

\(\displaystyle \frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{f \sqrt {a+b}}-\frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \operatorname {EllipticPi}\left (\frac {a (c+d)}{(a+b) c},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{f \sqrt {a+b}}\)

input
Int[Csc[e + f*x]*Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]],x]
 
output
(-2*Sqrt[c + d]*EllipticPi[(a*(c + d))/((a + b)*c), ArcSin[(Sqrt[a + b]*Sq 
rt[c + d*Sin[e + f*x]])/(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])], ((a - b)* 
(c + d))/((a + b)*(c - d))]*Sec[e + f*x]*Sqrt[-(((b*c - a*d)*(1 - Sin[e + 
f*x]))/((c + d)*(a + b*Sin[e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f*x 
]))/((c - d)*(a + b*Sin[e + f*x]))]*(a + b*Sin[e + f*x]))/(Sqrt[a + b]*f) 
+ (2*Sqrt[c + d]*EllipticPi[(b*(c + d))/((a + b)*d), ArcSin[(Sqrt[a + b]*S 
qrt[c + d*Sin[e + f*x]])/(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])], ((a - b) 
*(c + d))/((a + b)*(c - d))]*Sec[e + f*x]*Sqrt[-(((b*c - a*d)*(1 - Sin[e + 
 f*x]))/((c + d)*(a + b*Sin[e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f* 
x]))/((c - d)*(a + b*Sin[e + f*x]))]*(a + b*Sin[e + f*x]))/(Sqrt[a + b]*f)
 

3.1.48.3.1 Defintions of rubi rules used

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3290
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(c_.) + (d_.)*sin[(e_.) 
 + (f_.)*(x_)]], x_Symbol] :> Simp[2*((a + b*Sin[e + f*x])/(d*f*Rt[(a + b)/ 
(c + d), 2]*Cos[e + f*x]))*Sqrt[(b*c - a*d)*((1 + Sin[e + f*x])/((c - d)*(a 
 + b*Sin[e + f*x])))]*Sqrt[(-(b*c - a*d))*((1 - Sin[e + f*x])/((c + d)*(a + 
 b*Sin[e + f*x])))]*EllipticPi[b*((c + d)/(d*(a + b))), ArcSin[Rt[(a + b)/( 
c + d), 2]*(Sqrt[c + d*Sin[e + f*x]]/Sqrt[a + b*Sin[e + f*x]])], (a - b)*(( 
c + d)/((a + b)*(c - d)))], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - 
 a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && PosQ[(a + b)/(c + d)]
 

rule 3424
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/(sin[(e_.) + (f_.)*(x_)]*Sqr 
t[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*((a + b*Sin[ 
e + f*x])/(c*f*Rt[(a + b)/(c + d), 2]*Cos[e + f*x]))*Sqrt[(-(b*c - a*d))*(( 
1 - Sin[e + f*x])/((c + d)*(a + b*Sin[e + f*x])))]*Sqrt[(b*c - a*d)*((1 + S 
in[e + f*x])/((c - d)*(a + b*Sin[e + f*x])))]*EllipticPi[a*((c + d)/(c*(a + 
 b))), ArcSin[Rt[(a + b)/(c + d), 2]*(Sqrt[c + d*Sin[e + f*x]]/Sqrt[a + b*S 
in[e + f*x]])], (a - b)*((c + d)/((a + b)*(c - d)))], x] /; FreeQ[{a, b, c, 
 d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0 
]
 

rule 3428
Int[(Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_) + (d_.)*sin[(e_.) 
 + (f_.)*(x_)]])/sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[d   Int[Sqrt[a 
+ b*Sin[e + f*x]]/Sqrt[c + d*Sin[e + f*x]], x], x] + Simp[c   Int[Sqrt[a + 
b*Sin[e + f*x]]/(Sin[e + f*x]*Sqrt[c + d*Sin[e + f*x]]), x], x] /; FreeQ[{a 
, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && (NeQ[a^2 - b^2, 0] || NeQ[c^2 
- d^2, 0])
 
3.1.48.4 Maple [C] (warning: unable to verify)

Result contains complex when optimal does not.

Time = 7.63 (sec) , antiderivative size = 242134, normalized size of antiderivative = 619.27

method result size
default \(\text {Expression too large to display}\) \(242134\)

input
int((a+b*sin(f*x+e))^(1/2)*(c+d*sin(f*x+e))^(1/2)/sin(f*x+e),x,method=_RET 
URNVERBOSE)
 
output
result too large to display
 
3.1.48.5 Fricas [F(-1)]

Timed out. \[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=\text {Timed out} \]

input
integrate((a+b*sin(f*x+e))^(1/2)*(c+d*sin(f*x+e))^(1/2)/sin(f*x+e),x, algo 
rithm="fricas")
 
output
Timed out
 
3.1.48.6 Sympy [F]

\[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=\int \frac {\sqrt {a + b \sin {\left (e + f x \right )}} \sqrt {c + d \sin {\left (e + f x \right )}}}{\sin {\left (e + f x \right )}}\, dx \]

input
integrate((a+b*sin(f*x+e))**(1/2)*(c+d*sin(f*x+e))**(1/2)/sin(f*x+e),x)
 
output
Integral(sqrt(a + b*sin(e + f*x))*sqrt(c + d*sin(e + f*x))/sin(e + f*x), x 
)
 
3.1.48.7 Maxima [F]

\[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{\sin \left (f x + e\right )} \,d x } \]

input
integrate((a+b*sin(f*x+e))^(1/2)*(c+d*sin(f*x+e))^(1/2)/sin(f*x+e),x, algo 
rithm="maxima")
 
output
integrate(sqrt(b*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)/sin(f*x + e), 
x)
 
3.1.48.8 Giac [F]

\[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{\sin \left (f x + e\right )} \,d x } \]

input
integrate((a+b*sin(f*x+e))^(1/2)*(c+d*sin(f*x+e))^(1/2)/sin(f*x+e),x, algo 
rithm="giac")
 
output
integrate(sqrt(b*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)/sin(f*x + e), 
x)
 
3.1.48.9 Mupad [F(-1)]

Timed out. \[ \int \csc (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx=\int \frac {\sqrt {a+b\,\sin \left (e+f\,x\right )}\,\sqrt {c+d\,\sin \left (e+f\,x\right )}}{\sin \left (e+f\,x\right )} \,d x \]

input
int(((a + b*sin(e + f*x))^(1/2)*(c + d*sin(e + f*x))^(1/2))/sin(e + f*x),x 
)
 
output
int(((a + b*sin(e + f*x))^(1/2)*(c + d*sin(e + f*x))^(1/2))/sin(e + f*x), 
x)